<?php
namespace pinduoduo\Request;

use pinduoduo\AbstractInterface\Request;

class PddDdkCashgiftStatusUpdateRequest extends Request
{

    /**
     * 多多礼金状态更新
     * @var string
     */
    private $type = 'pdd.ddk.cashgift.status.update';

    /**
     * 多多礼金ID
     * @var
     */
    private $cashGiftId;

    /**
     * 礼金更新类型：0-停止礼金推广，1-恢复礼金推广
     * @var
     */
    private $updateType;

    public function setType($type)
    {
        $this->type = $type;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setCashGiftId($cashGiftId)
    {
        $this->cashGiftId = $cashGiftId;
    }

    public function getCashGiftId()
    {
        return $this->cashGiftId;
    }

    public function setUpdateType($updateType)
    {
        $this->updateType = $updateType;
    }

    public function getUpdateType()
    {
        return $this->updateType;
    }

    public function getParams()
    {
        $params = [
            'type'         => $this->type,
            'cash_gift_id' => $this->cashGiftId,
            'update_type'  => $this->updateType,
        ];
        return $params;
    }
}
